<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>layui</title>
    <link rel="stylesheet" href="layui/css/layui.css" media="all">
    <style>
        #page {
            width: 800px;
            /*min-height: 550px;*/
            margin-left: auto;
            margin-right: auto;
        }
    </style>
</head>
<body>
<div id="page">
    <div class="layui-input-block" style="margin-left: auto; padding: 10px;">
        <input id="code" type="text" placeholder="请输入代码" class="layui-input"
               style="width: 200px;display: inline-block;">
        <button id="save-btn" class="layui-btn layui-btn-sm" style="display: inline-block">添加</button>
        <button id="analyze-btn" class="layui-btn layui-btn-warm layui-btn-sm" style="float: right">分析</button>
    </div>

    <table class="layui-hide" id="jijin-table" lay-filter="table">
    </table>
</div>

<div id="update" style="display: none">
    <form id="edit-from" class="layui-form">
        <input type="hidden" name="code" id="code-input">
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">持有份额</label>
                <div class="layui-input-inline">
                    <input type="text" name="share" lay-verify="required" class="layui-input">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">持有单价</label>
                <div class="layui-input-inline">
                    <input type="text" name="price" lay-verify="required" class="layui-input">
                </div>
            </div>

            <div class="layui-input-block">
                <a class="layui-btn layui-btn-sm" lay-submit="" lay-filter="submit-btn">立即提交</a>
            </div>
        </div>
    </form>
</div>

<script type="text/html" id="barDemo">
    <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
</script>
<script src="layui/layui.js" charset="utf-8"></script>
<script src="js/index.js" charset="utf-8"></script>
</body>
</html>